package org.gardenXml.factorybean;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class testMyFactoeyBean {
    public static void main(String[] args) {
        ApplicationContext context =
       new ClassPathXmlApplicationContext("bean.Factorybean.xml");
        User myFactoryBean =(User) context.getBean("user");
        System.out.println(myFactoryBean);
    }
}
